//
//  MineInfoListModel.swift
//  MT
//
//  Created by M on 2019/12/25.
//  Copyright © 2019 张强. All rights reserved.
//

import UIKit
import ObjectMapper

class MineInfoListResponseModel: Mappable {
    
    var code: Int?
    
    var result: [MineInfoListModel]?
    
    var message: String?
    
    required init?(map: Map) {
        
    }
    
    open func mapping(map: Map) {
        code            <- map["code"]
        result          <- map["result"]
        message         <- map["message"]
    }
    
}

class MineInfoSignleResponseModel: Mappable {
    
    var code: Int?
    
    var result: MineInfoListModel?
    
    var message: String?
    
    required init?(map: Map) {
        
    }
    
    open func mapping(map: Map) {
        code            <- map["code"]
        result          <- map["result"]
        message         <- map["message"]
    }
    
}

class MineInfoListModel: Mappable {

    /// 地区
    var area: String?
    
    /// 内容
    var content: String?

    /// 媒体信息
    var imgList: [UserMediaListModel]?
    
    /// 创建时间
    var createTime: String?
    
    /// 主键
    var id: Int?

    /// 本地使用 - 是否已经展开文字内容 ( 默认展开三行 )
    var isExpanded: Bool = false
    
    var likeCount: Int = 0
    
    required init?(map: Map) {
        
    }
    
    open func mapping(map: Map) {
        id              <- map["id"]
        area            <- map["area"]
        imgList         <- map["imgList"]
        content         <- map["content"]
        createTime      <- map["createTime"]
        likeCount       <- map["likeCount"]
    }
    
}
